//
//  Data+XFExtension.swift
//  XFDownload
//
//  Created by mac on 2018/10/27.
//  Copyright © 2018 zeroLu. All rights reserved.
//

import Foundation


extension Data {
    
    var bytes: [UInt8] {
    
        get {
            return self.withUnsafeBytes { (conteType) -> [UInt8] in
                return [UInt8](UnsafeBufferPointer(start: conteType, count: self.count))
            }
        }
    }
    
}
